package com.tengju.user.domain.model.login;

import com.tengju.user.domain.model.club.ClubId;
import com.tengju.user.domain.model.user.UserIdCode;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author wuziyang
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginResult implements Serializable {


    private static final long serialVersionUID = 5150699891509250379L;

    private Long userId;

    private String username;

    private String nickName;

    private String headImage;

    private String token;

    private UserType userType;

    private UserIdCode userIdCode;

    private List<ClubId> clubIdList;

    private List<UserIdCode> genSecIdCodeList;

    private String password;

    private List<String> roleCodes;

    private Boolean serviceProvider;

    public void addToken(String token) {
        this.token = token;
    }

}
